/* Variables globales */
:root {
    --primary-color: #1e88e5;
    --primary-dark: #1565c0;
    --secondary-color: #26a69a;
    --dark-color: #263238;
    --light-color: #f5f5f5;
    --success-color: #43a047;
    --danger-color: #e53935;
    --warning-color: #ff9800;
    --transition: all 0.3s ease;
}

/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding-top: 56px;
}

a {
    text-decoration: none;
}

.section-title {
    position: relative;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.section-title::after {
    content: '';
    display: block;
    height: 4px;
    width: 80px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Navbar */
.navbar {
    background-color: var(--dark-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar-scrolled {
    padding-top: 5px;
    padding-bottom: 5px;
    background-color: rgba(38, 50, 56, 0.95);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
    min-height: 100vh;
    padding: 120px 0;
    position: relative;
}

.hero-img {
    max-width: 100%;
    height: auto;
    animation-duration: 3s;
    animation-iteration-count: infinite;
}

/* Animaciones */
.slide-in-left {
    animation: slideInLeft 1s ease forwards;
}

.slide-in-right {
    animation: slideInRight 1s ease forwards;
}

.bounce {
    animation: bounce 3s ease infinite;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.visible .fade-in {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Productos */
.product-card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-rating {
    color: #ffc107;
}

.price {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--dark-color);
}

.card-img-top {
    transition: var(--transition);
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Categorías */
.category-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    transition: var(--transition);
    
    
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-img {
    
    position: relative;
    overflow: hidden;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-title {

    padding: 15px;
    background-color: white;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
.category-title-debajo {
    
    padding: 15px;
    background-color: white;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.category-title h3 {
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 1.3rem;
}

.category-title p {
    margin-bottom: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Servicios */
.service-card {
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h4 {
    margin-bottom: 15px;
    font-weight: 600;
}

/* Testimonios */
.testimonial-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    position: relative;
    padding-top: 10px;
    margin-bottom: 20px;
}

.testimonial-content:before {
    content: '\201C';
    font-size: 4rem;
    position: absolute;
    top: -30px;
    left: -10px;
    color: var(--primary-color);
    opacity: 0.2;
}

.testimonial-author {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.testimonial-avatar img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

/* Newsletter */
.newsletter {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
}

.newsletter-form .form-control {
    height: 50px;
    border-radius: 50px 0 0 50px;
}

.newsletter-form .btn {
    
    border-radius: 0 50px 50px 0;
    padding-left: 20px;
    padding-right: 20px;
    
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdbdbd;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.contact-info {
    list-style: none;
    padding-left: 0;
}

.contact-info li {
    color: #bdbdbd;
    margin-bottom: 10px;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-links {
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.payment-methods i {
    font-size: 1.5rem;
    margin-left: 10px;
    color: #bdbdbd;
}

/* Cart */
#cartItemsTable .product-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.quantity-control {
    display: flex;
    align-items: center;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: 1px solid #ddd;
    margin: 0 5px;
    border-radius: 4px;
}

.remove-item {
    border: none;
    background: none;
    color: var(--danger-color);
    cursor: pointer;
}

/* Animations for cart */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.animate-fadeInDown {
    animation: fadeInDown 0.5s ease forwards;
}

.animate-shake {
    animation: shake 0.5s ease;
}

/* Responsiveness */
@media (max-width: 991.98px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero-img {
        margin-top: 40px;
    }
}

@media (max-width: 767.98px) {
    .section-title {
        margin-bottom: 30px;
    }
    
    .newsletter-form .form-control,
    .newsletter-form .btn {
        border-radius: 50px;
        margin-bottom: 10px;
    }
}

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

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

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

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

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.ruleta-section {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: bottom right;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0% 50%, 100% -50%, 100% 100%);
}

.ruleta-section span {
    color: #333;
    font-weight: bold;
    text-shadow: 0px 0px 2px rgba(255, 255, 255, 0.8);
    transform: rotate(-35deg);
    width: 11%;
    text-align: center;
    font-size: 20px;
    position: flex;
}



.ruleta-container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
}

canvas {
    border-radius: 50%;
    background: #fff;
}

button {
    
    padding: 10px 20px;
    font-size: 16px;
    background-color: #ff5722;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #e64a19;
}

#result {
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
}

/* Estilos para la ruleta de promociones circular */
.ruleta-container {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto;
}

.ruleta-marker {
    position: absolute;
    top: -30px;
    right: -20px;
    z-index: 10;
    transform: rotate(30deg);
}

.ruleta-marker i {
    filter: drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.5));
}

.ruleta-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    background-color: #f8f8f8;
}

.ruleta-wheel::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.ruleta-center {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: #9c27b0;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.ruleta-center i {
    color: white;
    font-size: 24px;
}

.ruleta-section {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: bottom right;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: circle(40%);
}

.ruleta-section span {
    color: #333;
    font-weight: bold;
    text-shadow: 0px 0px 2px rgba(255, 255, 255, 0.8);
    transform: rotate(-30deg);
    width: 80px;
    text-align: center;
    font-size: 14px;
    position: absolute;
    left: 20px;
    top: 30px;
}

.ruleta-section:nth-child(1) {
    transform: rotate(0deg);
    background-color: #ff9ff3;
}

.ruleta-section:nth-child(2) {
    transform: rotate(60deg);
    background-color: #74b9ff;
}

.ruleta-section:nth-child(3) {
    transform: rotate(120deg);
    background-color: #ffeaa7;
}

.ruleta-section:nth-child(4) {
    transform: rotate(180deg);
    background-color: #55efc4;
}

.ruleta-section:nth-child(5) {
    transform: rotate(240deg);
    background-color: #ff7675;
}

.ruleta-section:nth-child(6) {
    transform: rotate(300deg);
    background-color: #74b9ff;
}

/* Puntos en los bordes de los segmentos */
.ruleta-section::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    right: 0;
    top: 0;
    z-index: 3;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

/* Líneas separadoras entre segmentos */
.ruleta-section::before {
    content: '';
    position: absolute;
    height: 175px;
    width: 2px;
    background-color: white;
    right: 0;
    top: 0;
    transform-origin: bottom center;
}

/* Animación para resaltar el premio */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

#promo-result {
    animation: fadeInScale 0.5s ease-out;
}

#codigo-promocion {
    background-color: #f8f9fa;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px dashed #198754;
}

/* Puntero de la ruleta */
.ruleta-pointer {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #333;
    border-radius: 50%;
    top: 50%;
    right: 350px;
    transform: translateY(-50%);
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ruleta-pointer::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #333;
    right: -8px;
}




/* Efecto de iluminación para los enlaces de navegación */
.navbar .nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.navbar .nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #ffffff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    opacity: 0;
}

/* Solo muestra la línea para el enlace activo/actual */
.navbar .nav-link.active:after {
    width: 100%;
    opacity: 1;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Efecto hover para todos los enlaces */
.navbar .nav-link:hover {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Estilo específico para el enlace activo */
.navbar .nav-link.active {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    font-weight: 500;
}


/* Estilos para el botón de cambio de tema */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 50px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: 0.4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.slider .fa-sun {
    color: #f39c12;
    font-size: 12px;
}

.slider .fa-moon {
    color: #f1c40f;
    font-size: 12px;
}

.slider:before {
    background-color: white;
    bottom: 4px;
    content: "";
    height: 16px;
    left: 4px;
    position: absolute;
    transition: 0.4s;
    width: 16px;
    z-index: 1;
}

input:checked + .slider {
    background-color: #2c3e50;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Variables para tema claro (por defecto) */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #ffffff;
    --text-color: #212529;
    --card-bg: #ffffff;
    --footer-bg: #343a40;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --navbar-bg: #343a40;
    --hero-overlay: rgba(0, 0, 0, 0.5);
    --shadow-color: rgba(0, 0, 0, 0.15);
}

/* Variables para tema oscuro */
[data-theme="dark"] {
    --primary-color: #0d6efd;
    --secondary-color: #adb5bd;
    --background-color: #121212;
    --text-color: #e0e0e0;
    --card-bg: #1e1e1e;
    --footer-bg: #1a1a1a;
    --light-bg: #2a2a2a;
    --border-color: #444444;
    --navbar-bg: #1a1a1a;
    --hero-overlay: rgba(0, 0, 0, 0.7);
    --shadow-color: rgba(255, 255, 255, 0.05);
}

/* Aplicar variables a los elementos */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

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

.hero {
    background-color: var(--hero-overlay);
}

.card, .product-card, .service-card, .testimonial-card, .category-card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 0.5rem 1rem var(--shadow-color);
}

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

.footer, .newsletter {
    background-color: var(--footer-bg);
}

.modal-content {
    background-color: var(--background-color);
    color: var(--text-color);
    border-color: var(--border-color);
}

/* Ajuste de colores de texto en modo oscuro */
[data-theme="dark"] .card-title, 
[data-theme="dark"] .section-title, 
[data-theme="dark"] h1, 
[data-theme="dark"] h2, 
[data-theme="dark"] h3, 
[data-theme="dark"] h4, 
[data-theme="dark"] h5, 
[data-theme="dark"] h6 {
    color: var(--text-color);
}

[data-theme="dark"] .card-text,
[data-theme="dark"] p {
    color: var(--secondary-color);
}

/* Ajuste para contrastes en modo oscuro */
[data-theme="dark"] .btn-outline-light {
    color: var(--text-color);
    border-color: var(--text-color);
}

[data-theme="dark"] .btn-outline-light:hover {
    background-color: var(--text-color);
    color: var(--background-color);
}

[data-theme="dark"] .table {
    color: var(--text-color);
}

[data-theme="dark"] .modal-header {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .modal-footer {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}