/* Definición de variables CSS para modo claro y oscuro */
:root {
    /* Modo Claro */
    --background-color: #f0f0f0;
    --text-color: #1a1a1a;
    --header-bg: #d3d3d3;
    --nav-hover-bg: #a9a9a9;
    --nav-hover-text: #000000;
    --nav-bg: #b4b4b4d9;
    --card-bg: #ffffff;
    --card-back-bg: #f9f9f9;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --card-hover-shadow: rgba(0, 0, 0, 0.2);
    --price-color: #ff4c29;
    --price-hover: #e63920;
    --bonus-color: #ff8800;
    --amount-color: #00ff7f;
    --inventory-color: #555;
    --out-of-stock-bg: rgba(50, 50, 50, 0.8);
    --out-of-stock-text: white;
    --border-color: #ff4c29;
    --border-hover-color: #e91e63;
    --icon-color: #000000;
    --search-bar-bg: #ffffff;
    --button-bg: #ff4c29;
    --button-text: #ffffff;
    --nav-menu-bg: rgba(211, 211, 211, 0.85); /* Fondo del menú en modo claro */
}

body.dark-mode {
    /* Modo Oscuro */
    --background-color: #1a1a1a;
    --text-color: #e5e5e5;
    --header-bg: #333333;
    --nav-bg: rgba(60, 60, 60, 0.85);
    --nav-hover-bg: #5a5a5a;
    --nav-hover-text: #ffffff;
    --card-bg: #2c2c2c;
    --card-back-bg: #353535;
    --card-shadow: rgba(255, 255, 255, 0.1);
    --card-hover-shadow: rgba(255, 255, 255, 0.2);
    --price-color: #ff4d8d;
    --price-hover: #ff6699;
    --bonus-color: #ffea00;
    --amount-color: #00ff7f;
    --inventory-color: #b0b0b0;
    --out-of-stock-bg: rgba(200, 200, 200, 0.8);
    --out-of-stock-text: #333;
    --border-color: #ff4d8d;
    --border-hover-color: #00f0ff;
    --icon-color: #ffffff;
    --search-bar-bg: rgba(59, 59, 59, 0.767);
    --button-bg: #ff4d8d;
    --button-text: #ffffff;
    --nav-menu-bg: rgba(40, 40, 40, 0.9); /* Fondo del menú en modo oscuro */
}

/* Body */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Arial, sans-serif;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-mode {
    background: linear-gradient(135deg, #f0f0f5, #e0e0ea);
}

body.dark-mode {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}

/* Contenedor Header */
header {
    position: sticky;
    top: 0;
    z-index: 30;
    width: 100vw;
    left: 0;
    margin: 0;
    padding: 0;
}

/* Barra superior fija (top-bar) */
.top-bar {
    background-color: var(--header-bg);
    color: var(--text-color);
    padding: 8px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 30;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 4px var(--card-shadow);
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Agrupar por bloques */
.nombre-local,
.barra-busqueda,
.iconos-contacto {
    display: flex;
    align-items: center;
}

/* Ajustes a cada sección */
.nombre-local {
    flex: 1;
    font-size: 24px;
}

.barra-busqueda {
    flex: 2;
    justify-content: center;
    padding: 0 20px;
}

.iconos-contacto {
    flex: 1;
    justify-content: flex-end;
    gap: 15px;
}

/* Íconos */
.icono-ws,
.icono-ubicacion {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.icono-ws i,
.icono-ubicacion i {
    font-size: 16px;
    color: var(--icon-color);
}

/* Estilo para hipervínculos en el top-bar */
.nombre-local a,
.icono-ws a {
    color: #000000;
    text-decoration: none;
}

.nombre-local a:hover,
.nombre-local a:active,
.nombre-local a:visited,
.icono-ws a:hover,
.icono-ws a:active,
.icono-ws a:visited {
    color: #000000;
    text-decoration: none;
}

/* Modo oscuro para hipervínculos en el top-bar */
body.dark-mode .nombre-local a,
body.dark-mode .icono-ws a {
    color: #ffffff;
}

body.dark-mode .nombre-local a:hover,
body.dark-mode .nombre-local a:active,
body.dark-mode .nombre-local a:visited,
body.dark-mode .icono-ws a:hover,
body.dark-mode .icono-ws a:active,
body.dark-mode .icono-ws a:visited {
    color: #ffffff;
}

/* Botón de cambio de tema */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
}

.theme-icon {
    font-size: 20px;
    color: var(--text-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.theme-icon:hover {
    transform: scale(1.2);
    color: var(--border-color);
}

/* Botón de menú */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: none;
}

.menu-icon {
    font-size: 20px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.menu-icon:hover {
    color: var(--border-color);
}

/* Barra de búsqueda */
.search-bar {
    padding: 8px;
    width: 100%;
    max-width: 450px;
    box-sizing: border-box;
    background-color: var(--search-bar-bg);
    color: var(--text-color);
    border: 1px solid var(--card-shadow);
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-family: 'Roboto', sans-serif;
    font-weight: normal;
}

.search-bar:focus {
    outline: none;
    border-color: var(--border-color);
}

/* Barra de navegación */
.nav-container {
    display: block;
}

.nav-bar {
    background-color: var(--nav-bg);
    padding: 6px 0;
    text-align: center;
    position: sticky;
    z-index: 30;
    width: 100vw;
    left: 0;
    margin: 0;
    box-shadow: 0 2px 4px var(--card-shadow);
    transition: background-color 0.3s ease;
}

.nav-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.nav-bar li {
    display: flex;
}

.nav-bar a {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 16px;
}

.nav-bar a:hover {
    background-color: var(--nav-hover-bg);
    color: var(--nav-hover-text);
}

/* Íconos dentro del menú */
.nav-bar i {
    font-size: 20px;
}

/* Main Content Styles */
.game-currency-section {
    padding: 50px 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    background-color: #7d14ff; /* Fondo Free Fire */
}

.game-currency-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
    transition: background 0.3s ease;
}

body.light-mode .game-currency-section::before {
    background: rgba(255, 255, 255, 0.85);
}

.game-currency-section > * {
    position: relative;
    z-index: 2;
}

/* Estilo para los títulos h2 de las secciones de recargas */
.game-currency-section h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

/* Clash of Clans Section */
.clash-of-clans-section {
    background-color: #2e7d32; /* Verde oscuro para Clash of Clans */
}

.clash-of-clans-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
    transition: background 0.3s ease;
}

body.light-mode .clash-of-clans-section::before {
    background: rgba(255, 255, 255, 0.85);
}

/* Brawl Stars Section */
.brawl-stars-section {
    background-color: #d32f2f; /* Rojo vibrante para Brawl Stars */
}

.brawl-stars-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
    transition: background 0.3s ease;
}

body.light-mode .brawl-stars-section::before {
    background: rgba(255, 255, 255, 0.85);
}

/* Clash Royale Section */
.clash-royale-section {
    background-color: #1e90ff; /* Azul para Clash Royale */
}

.clash-royale-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
    transition: background 0.3s ease;
}

body.light-mode .clash-royale-section::before {
    background: rgba(255, 255, 255, 0.85);
}

.game-logo {
    display: block;
    max-width: 250px;
    height: auto;
    margin: 0 auto 40px;
    border-radius: 10px;
}

.currency-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.currency-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.currency-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(255, 76, 41, 0.5);
}

body.light-mode .currency-card:hover {
    background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
                linear-gradient(45deg, #ff4c29, #e91e63, #ff4c29) border-box;
    background-size: 400%;
    animation: border-glow 3s linear infinite;
}

body.dark-mode .currency-card:hover {
    background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
                linear-gradient(45deg, #00f0ff, #ff00ff, #00ff00, #00f0ff) border-box;
    background-size: 400%;
    animation: border-glow 8s linear infinite;
}

@keyframes border-glow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 400% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.light-mode .currency-card:hover {
        animation: none;
        background: var(--card-bg);
        border: 2px solid #ff4c29;
    }

    body.dark-mode .currency-card:hover {
        animation: none;
        background: var(--card-bg);
        border: 2px solid #00f0ff;
    }
}

.currency-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    background: var(--card-bg);
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease, border-bottom 0.3s ease;
}

body.light-mode .currency-image {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.currency-info {
    padding: 20px;
    text-align: center;
}

.currency-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.currency-amount {
    font-size: 18px;
    color: var(--amount-color);
    margin-bottom: 10px;
}

.currency-price {
    font-size: 18px;
    color: var(--price-color);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.currency-bonus {
    font-size: 14px;
    color: var(--bonus-color);
    margin-bottom: 10px;
}

.details-button {
    background: var(--button-bg);
    color: var(--button-text);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    margin-top: 10px;
}

.details-button:hover {
    background: var(--price-hover);
}

.benefits-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    color: var(--text-color);
    padding: 40px 20px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 3;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

body.light-mode .benefits-overlay {
    background: rgba(255, 255, 255, 0.9);
}

.benefits-overlay.active {
    transform: translateY(0);
}

.benefits-overlay h3 {
    font-size: 18px;
    color: var(--price-color);
    width: 100%;
    line-height: 1.4;
}

.benefits-overlay ul {
    list-style: none;
    font-size: 14px;
    margin: 0 0 15px 0;
    padding: 0;
    color: var(--text-color);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefits-overlay ul li {
    margin-bottom: 10px;
    max-width: 90%;
    line-height: 1.5;
}

.benefits-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    width: 100%;
}

.benefits-overlay .currency-price {
    font-size: 18px;
    color: var(--price-color);
    margin: 15px 0;
}

.close-button {
    position: static;
    background: var(--button-bg);
    color: var(--button-text);
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    margin-top: 15px;
}

.close-button:hover {
    background: var(--price-hover);
}

.benefits-overlay .benefit-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.benefits-overlay .benefit-section:not(.active) {
    display: none;
}

.benefits-overlay .navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    width: 100%;
    max-width: 300px;
}

.benefits-overlay .navigation-buttons button {
    background: none;
    border: none;
    color: #aaaaaa;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 4px;
    transition: color 0.2s ease;
}

body.light-mode .benefits-overlay .navigation-buttons button {
    color: #666666;
}

body.dark-mode .benefits-overlay .navigation-buttons button {
    color: #cccccc;
}

.benefits-overlay .navigation-buttons button:hover:not(:disabled) {
    color: var(--text-color);
    text-decoration: underline;
}

.benefits-overlay .navigation-buttons button:disabled {
    color: #555555;
    cursor: not-allowed;
}

body.light-mode .benefits-overlay .navigation-buttons button:disabled {
    color: #cccccc;
}

.benefits-overlay em,
.benefits-overlay strong {
    color: var(--bonus-color);
}

.benefits-overlay h4 {
    color: var(--bonus-color) !important;
}

.gallery-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.gallery-subsection {
    margin-bottom: 40px;
}

.gallery-subsection h3 {
    font-size: 22px;
    color: var(--text-color);
    margin: 20px 0 15px;
    text-align: left;
    border-left: 4px solid var(--border-color);
    padding-left: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.subsection-icon {
    color: var(--border-color);
    font-size: 20px;
    transition: color 0.3s ease;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 8px var(--card-shadow);
    position: relative;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    height: 380px;
    perspective: 1000px;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px var(--card-hover-shadow);
    border: 2px solid var(--border-hover-color);
}

body.dark-mode .product-card:hover {
    background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
                linear-gradient(45deg, #00f0ff, #ff00ff, #00ff00, #00f0ff) border-box;
    background-size: 400%;
    animation: neon-border 8s linear infinite;
}

@keyframes neon-border {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 400% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-card:hover {
        transform: none;
        background: var(--card-bg);
        border: 2px solid var(--border-hover-color);
    }

    body.dark-mode .product-card:hover {
        animation: none;
        background: var(--card-bg);
        border: 2px solid #00f0ff;
    }
}

.product-card.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 15px;
    box-sizing: border-box;
    top: 0;
    left: 0;
}

.card-front {
    z-index: 2;
    background-color: var(--card-bg);
    transition: background-color 0.3s ease;
}

.card-back {
    transform: rotateY(180deg);
    background-color: var(--card-back-bg);
    overflow-y: auto;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    margin: 8px 0;
    color: var(--text-color);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    max-height: 40px;
    transition: color 0.3s ease;
}

.product-price {
    font-size: 16px;
    color: var(--price-color);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.product-inventory {
    font-size: 14px;
    color: var(--inventory-color);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.tech-specs-link,
.back-link {
    font-size: 14px;
    color: var(--price-color);
    text-decoration: none;
    margin-top: auto;
    transition: color 0.3s ease;
}

.tech-specs-link:hover,
.back-link:hover {
    color: var(--price-hover);
}

.out-of-stock {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--out-of-stock-bg);
    color: var(--out-of-stock-text);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tech-specs {
    text-align: left;
    padding: 10px 0;
    flex-grow: 1;
}

.tech-specs h4 {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    max-height: 40px;
    transition: color 0.3s ease;
}

.tech-specs ul {
    list-style: none;
    padding: 0;
    font-size: 14px;
    color: var(--inventory-color);
    margin: 0;
    transition: color 0.3s ease;
}

.tech-specs li {
    margin-bottom: 8px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

/* Estilos para la sección introductoria */
.intro-section {
    padding: 20px 30px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.intro-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro-section h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: var(--text-color);
    margin-bottom: 20px;
    transition: color 0.3s ease;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.intro-section h1.active {
    opacity: 1;
    transform: translateY(0);
}

.intro-button {
    background: none;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    padding: 10px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: color 0.3s ease, transform 0.3s ease;
}

.intro-button:hover {
    color: var(--border-color);
    transform: scale(1.05);
}

.intro-button-text {
    transition: opacity 0.3s ease;
}

.intro-button-text.hidden {
    opacity: 0;
}

.intro-button-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--border-color);
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.intro-button-line.visible {
    opacity: 1;
}

.intro-section p {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0 auto;
    max-width: 800px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.intro-content.active {
    display: block;
}

.intro-content.active p {
    opacity: 1;
    transform: translateY(0);
}

/* Footer Styles */
.footer {
    background-color: var(--header-bg);
    color: var(--text-color);
    padding: 40px 20px;
    border-top: 2px solid var(--border-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
    margin: 5px 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--nav-hover-text);
}

.footer-section p i {
    margin-right: 8px;
    color: var(--icon-color);
}

.footer-section p a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section p a:hover {
    color: var(--nav-hover-text);
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 14px;
    margin: 0;
    color: var(--text-color);
}

/* Estilos para la sección de redes sociales */
.footer-section .social-links li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section .social-links li a i {
    color: var(--icon-color);
    font-size: 16px;
    transition: color 0.3s ease;
}

.footer-section .social-links li a:hover,
.footer-section .social-links li a:hover i {
    color: var(--nav-hover-text);
}

/* Estilos para la galería de resultados de búsqueda */
#search-results-gallery {
    padding: 50px 30px;
    max-width: 1200px;
    margin: 0 auto;
    display: none; /* Oculta por defecto */
    transition: background-color 0.3s ease;
}

#search-results-gallery.active {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columnas */
    gap: 20px;
}

/* Responsividad para tablets */
@media (max-width: 1024px) {
    #search-results-gallery.active {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas */
    }
}

/* Responsividad para móviles */
@media (max-width: 600px) {
    #search-results-gallery.active {
        grid-template-columns: 1fr; /* 1 columna */
    }
}

#search-results-gallery h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

#search-results-gallery .product-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    cursor: pointer;
}

#search-results-gallery .product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(255, 76, 41, 0.5);
}

body.light-mode #search-results-gallery .product-card:hover {
    background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
                linear-gradient(45deg, #ff4c29, #e91e63, #ff4c29) border-box;
    background-size: 400%;
    animation: border-glow 3s linear infinite;
}

body.dark-mode #search-results-gallery .product-card:hover {
    background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
                linear-gradient(45deg, #00f0ff, #ff00ff, #00ff00, #00f0ff) border-box;
    background-size: 400%;
    animation: border-glow 8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    body.light-mode #search-results-gallery .product-card:hover {
        animation: none;
        background: var(--card-bg);
        border: 2px solid #ff4c29;
    }

    body.dark-mode #search-results-gallery .product-card:hover {
        animation: none;
        background: var(--card-bg);
        border: 2px solid #00f0ff;
    }
}

#search-results-gallery .product-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    background: var(--card-bg);
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease, border-bottom 0.3s ease;
}

body.light-mode #search-results-gallery .product-card img {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#search-results-gallery .product-card .card-front {
    padding: 20px;
    text-align: center;
}

#search-results-gallery .product-card .product-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

#search-results-gallery .product-card .product-price {
    font-size: 18px;
    color: var(--price-color);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

#search-results-gallery .product-card .product-inventory {
    font-size: 14px;
    color: var(--inventory-color);
    margin-bottom: 10px;
}

/* Estilo azul para el botón "Ver Detalles" en resultados de búsqueda */
#search-results-gallery .product-card .tech-specs-link {
    display: inline-block;
    padding: 10px 20px;
    background: #1e90ff; /* Azul en modo claro */
    color: #ffffff; /* Texto blanco para contraste */
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-align: center;
    margin-top: 12px;
    border: 2px solid transparent;
    box-shadow: 0 2px 4px var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease, border 0.3s ease;
    position: relative;
    overflow: hidden;
    width: fit-content;
    align-self: center;
}

body.dark-mode #search-results-gallery .product-card .tech-specs-link {
    background: #00b7eb; /* Azul cian en modo oscuro */
}

#search-results-gallery .product-card .tech-specs-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.4s ease;
}

#search-results-gallery .product-card .tech-specs-link:hover::before {
    left: 100%;
}

#search-results-gallery .product-card .tech-specs-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px var(--card-hover-shadow);
    border: 2px solid #87cefa; /* Borde azul claro en hover */
    background: #4682b4; /* Azul más oscuro en hover */
}

body.dark-mode #search-results-gallery .product-card .tech-specs-link:hover {
    background: #1ecbe1; /* Azul cian más claro en hover */
    border: 2px solid #87cefa;
}

#search-results-gallery .product-card .tech-specs-link:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px var(--card-shadow);
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    #search-results-gallery .product-card .tech-specs-link {
        padding: 8px 16px;
        font-size: 14px;
        margin-top: 10px;
    }
}

#search-results-gallery .no-results {
    font-size: 18px;
    color: var(--text-color);
    text-align: center;
    padding: 20px;
}

.highlight-product {
    animation: highlight 3s ease;
    border: 2px solid #ff4c29;
    box-shadow: 0 0 10px rgba(255, 76, 41, 0.5);
}

@keyframes highlight {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}